this._entry = null;
this._textEntry = new St.Entry(entryParams);
- ShellEntry.addContextMenu(this._textEntry, { actionMode: Shell.ActionMode.NONE });
+ ShellEntry.addContextMenu(this._textEntry, {actionMode: Shell.ActionMode.NONE});
this._passwordEntry = new St.PasswordEntry(entryParams);
- ShellEntry.addContextMenu(this._passwordEntry, { actionMode: Shell.ActionMode.NONE });
+ ShellEntry.addContextMenu(this._passwordEntry, {actionMode: Shell.ActionMode.NONE});
this._entry = this._passwordEntry;
this._mainBox.add_child(this._entry);
}
serviceIsForeground(serviceName) {
- return serviceName == this._getForegroundService();
+ return serviceName === this._getForegroundService();
}
foregroundServiceDeterminesUsername() {
const { loadInterfaceXML } = imports.misc.fileUtils;
-// _getMobileProvidersDatabase:
-//
-// Gets the database of mobile providers, with references between MCCMNC/SID and
-// operator name
-//
let _mpd;
+
+/**
+ * _getMobileProvidersDatabase:
+ *
+ * Gets the database of mobile providers, with references between MCCMNC/SID and
+ * operator name
+ *
+ * @returns {NMA4.MobileProvidersDatabase | null}
+ */
function _getMobileProvidersDatabase() {
if (_mpd == null) {
try {
available: true,
});
- this._loginScreenSettings = new Gio.Settings({ schema_id: LOGIN_SCREEN_SCHEMA });
- this._lockdownSettings = new Gio.Settings({ schema_id: LOCKDOWN_SCHEMA });
- this._orientationSettings = new Gio.Settings({ schema_id: 'org.gnome.settings-daemon.peripherals.touchscreen' });
+ this._loginScreenSettings = new Gio.Settings({schema_id: LOGIN_SCREEN_SCHEMA});
+ this._lockdownSettings = new Gio.Settings({schema_id: LOCKDOWN_SCHEMA});
+ this._orientationSettings = new Gio.Settings({schema_id: 'org.gnome.settings-daemon.peripherals.touchscreen'});
this._session = new GnomeSession.SessionManager();
this._loginManager = LoginManager.getLoginManager();
let check = new CheckBox.CheckBox();
check.getLabelActor().text = name;
- check.checked = selected == "true";
+ check.checked = selected === 'true';
content.add_child(check);
this._choices.set(id, check);
if (appIndex === -1)
return [-1, -1];
- const { itemsPerPage } = this._grid;
+ const {itemsPerPage} = this._grid;
return [Math.floor(appIndex / itemsPerPage), appIndex % itemsPerPage];
}
let display = global.display;
display.connect('restacked',
- this._windowsRestacked.bind(this));
+ this._windowsRestacked.bind(this));
display.connect('in-fullscreen-changed',
- this._updateFullscreen.bind(this));
+ this._updateFullscreen.bind(this));
const monitorManager = global.backend.get_monitor_manager();
monitorManager.connectObject(
if (this._player.trackCoverUrl) {
let file = Gio.File.new_for_uri(this._player.trackCoverUrl);
- this._icon.gicon = new Gio.FileIcon({ file });
+ this._icon.gicon = new Gio.FileIcon({file});
this._icon.remove_style_class_name('fallback');
} else if (this._player.app) {
this._icon.gicon = this._player.app.icon;
() => this._shiftState(Meta.MotionDirection.UP));
Main.wm.addKeybinding('shift-overview-down',
- new Gio.Settings({ schema_id: WindowManager.SHELL_KEYBINDINGS_SCHEMA }),
+ new Gio.Settings({schema_id: WindowManager.SHELL_KEYBINDINGS_SCHEMA}),
Meta.KeyBindingFlags.IGNORE_AUTOREPEAT,
Shell.ActionMode.NORMAL | Shell.ActionMode.OVERVIEW,
() => this._shiftState(Meta.MotionDirection.DOWN));
Signals: { 'keybinding-edited': { param_types: [GObject.TYPE_STRING] } },
}, class KeybindingEntry extends St.Entry {
_init() {
- super._init({ hint_text: _("New shortcut…"), style: 'width: 10em' });
+ super._init({hint_text: _('New shortcut…'), style: 'width: 10em'});
}
vfunc_captured_event(event) {
}
setOrnament(ornament) {
- if (ornament == this._ornament)
+ if (ornament === this._ornament)
return;
this._ornament = ornament;
this._smartcardManager = SmartcardManager.getSmartcardManager();
this._smartcardManager.connect('smartcard-inserted',
- (manager, token) => {
- if (this._isLocked && token.UsedToLogin)
- this._activateDialog();
- });
+ (manager, token) => {
+ if (this._isLocked && token.UsedToLogin)
+ this._activateDialog();
+ });
this._credentialManagers = {};
this.addCredentialManager(OVirt.SERVICE_NAME, OVirt.getOVirtCredentialsManager());
this._shotButton.bind_property('checked', this._castButton, 'checked',
GObject.BindingFlags.BIDIRECTIONAL | GObject.BindingFlags.INVERT_BOOLEAN);
- this._captureButton = new St.Button({ style_class: 'screenshot-ui-capture-button' });
+ this._captureButton = new St.Button({style_class: 'screenshot-ui-capture-button'});
this._captureButton.set_child(new St.Widget({
style_class: 'screenshot-ui-capture-button-circle',
}));
});
var SearchResultsView = GObject.registerClass({
- Signals: { 'terms-changed': {} },
+ Signals: {'terms-changed': {}},
}, class SearchResultsView extends St.BoxLayout {
_init() {
super._init({
/**
* addProvider:
- * @param {object} provider - a search provider implementation
*
* Add a search provider to the controller.
+ *
+ * @param {object} provider - a search provider implementation
*/
addProvider(provider) {
this._searchResults._registerProvider(provider);
/**
* removeProvider:
- * @param {object} provider - a search provider implementation
*
* Remove a search provider from the controller.
+ *
+ * @param {object} provider - a search provider implementation
*/
removeProvider(provider) {
this._searchResults._unregisterProvider(provider);
let curGridRow = 0;
if (flags & Gio.AskPasswordFlags.TCRYPT) {
- this._hiddenVolume = new CheckBox.CheckBox(_("Hidden Volume"));
+ this._hiddenVolume = new CheckBox.CheckBox(_('Hidden Volume'));
content.add_child(this._hiddenVolume);
- this._systemVolume = new CheckBox.CheckBox(_("Windows System Volume"));
+ this._systemVolume = new CheckBox.CheckBox(_('Windows System Volume'));
content.add_child(this._systemVolume);
- this._keyfilesCheckbox = new CheckBox.CheckBox(_("Uses Keyfiles"));
- this._keyfilesCheckbox.connect("clicked", this._onKeyfilesCheckboxClicked.bind(this));
+ this._keyfilesCheckbox = new CheckBox.CheckBox(_('Uses Keyfiles'));
+ this._keyfilesCheckbox.connect('clicked', this._onKeyfilesCheckboxClicked.bind(this));
content.add_child(this._keyfilesCheckbox);
- this._keyfilesLabel = new St.Label({ visible: false });
+ this._keyfilesLabel = new St.Label({visible: false});
if (disksApp) {
this._keyfilesLabel.clutter_text.set_markup(
/* Translators: %s is the Disks application */
content.add_child(passwordGrid);
if (flags & Gio.AskPasswordFlags.SAVING_SUPPORTED) {
- this._rememberChoice = new CheckBox.CheckBox(_("Remember Password"));
+ this._rememberChoice = new CheckBox.CheckBox(_('Remember Password'));
this._rememberChoice.checked =
global.settings.get_boolean(REMEMBER_MOUNT_PASSWORD_KEY);
content.add_child(this._rememberChoice);
this.contentLayout.add_child(content);
this._defaultButtons = [{
- label: _("Cancel"),
+ label: _('Cancel'),
action: this._onCancelButton.bind(this),
key: Clutter.KEY_Escape,
}, {
- label: _("Unlock"),
+ label: _('Unlock'),
action: this._onUnlockButton.bind(this),
default: true,
}];
this._usesKeyfilesButtons = [{
- label: _("Cancel"),
+ label: _('Cancel'),
action: this._onCancelButton.bind(this),
key: Clutter.KEY_Escape,
}];
let bounceKeys = this._buildItem(_("Bounce Keys"), A11Y_KEYBOARD_SCHEMA, KEY_BOUNCE_KEYS_ENABLED);
this.menu.addMenuItem(bounceKeys);
- let mouseKeys = this._buildItem(_("Mouse Keys"), A11Y_KEYBOARD_SCHEMA, KEY_MOUSE_KEYS_ENABLED);
+ let mouseKeys = this._buildItem(_('Mouse Keys'), A11Y_KEYBOARD_SCHEMA, KEY_MOUSE_KEYS_ENABLED);
this.menu.addMenuItem(mouseKeys);
this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
// effect without considerable work to consolidate the usage
// of pushModal/popModal and grabHelper. See
// https://bugzilla.gnome.org/show_bug.cgi?id=695143 .
- if (Main.actionMode == Shell.ActionMode.POPUP) {
+ if (Main.actionMode === Shell.ActionMode.POPUP) {
this._modifiersSwitcher();
return;
}
_windowEnteredMonitor(metaDisplay, monitorIndex, _metaWin) {
// If the window entered the primary monitor, that
// might make that workspace non-empty
- if (monitorIndex == Main.layoutManager.primaryIndex)
+ if (monitorIndex === Main.layoutManager.primaryIndex)
this._queueCheckWorkspaces();
}
if (!window.can_maximize())
item.setSensitive(false);
- item = this.addAction(_("Move"), event => {
+ item = this.addAction(_('Move'), event => {
const device = event.get_device();
const seat = device.get_seat();
const deviceType = device.get_device_type();
if (!window.allows_move())
item.setSensitive(false);
- item = this.addAction(_("Resize"), event => {
+ item = this.addAction(_('Resize'), event => {
const device = event.get_device();
const seat = device.get_seat();
const deviceType = device.get_device_type();